package com.gp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.gp.mapper.BaseProductlevelMapper;
import com.gp.model.dto.ProductLevelInfo;
import com.gp.model.entity.BaseProductlevel;
import com.gp.service.IBaseProductlevelService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 弓成龙
 * @since 2017-11-26
 */
@Service
public class BaseProductlevelServiceImpl extends ServiceImpl<BaseProductlevelMapper, BaseProductlevel> implements IBaseProductlevelService {
  
  @Autowired 
  private BaseProductlevelMapper mapper;
  @Override
  public List<ProductLevelInfo> list() {
    return mapper.selectDetail();
  }
  @Override
  public boolean insertProductlevel(BaseProductlevel level) {
    return mapper.insertProductlevel(level)==1;
  }
	
}
